﻿using System;

namespace Hongsh.Pay.Client.Proxy.Http {
    // Token: 0x0200002D RID: 45
    public class HttpRedirectResult : HttpResult {
        // Token: 0x17000091 RID: 145
        // (get) Token: 0x0600015D RID: 349 RVA: 0x00002EF1 File Offset: 0x000010F1
        public string Location { get; }

        // Token: 0x0600015E RID: 350 RVA: 0x00002EF9 File Offset: 0x000010F9
        public HttpRedirectResult(string location) : base(302, null) {
            //Class15.cwcZ3SWztHroi();
            //base..ctor(302, null);
            Location = location;
        }

        // Token: 0x0600015F RID: 351 RVA: 0x00002F13 File Offset: 0x00001113
        public override void WriteReponse(HttpContext ctx) {
            base.WriteReponse(ctx);
            ctx.Response.Header["Location"] = Location;
        }
    }
}
